package com.demo.facade;

public class Stereo {
    // 使用饿汉式
    private static Stereo stereo = new Stereo();

    public static Stereo getStereo() {
        return stereo;
    }

    public void on() {
        System.out.println(" Stereo on ");
    }

    public void off() {
        System.out.println(" Stereo off ");
    }

    public void up() {
        System.out.println(" Stereo up ");
    }
}
